package net.valerijtimakov.homefinances.dao.storages.common.mysql.query_builders;

import net.valerijtimakov.homefinances.domain.common.CheckedData;
import net.valerijtimakov.homefinances.exceptions.AppExceptionWrongState;

public abstract class Query extends CheckedData {
	
	protected String tableName;

	public Query() {
		super();
	}

	public Query(String tableName) {
		super();
		setTableName(tableName);
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = checkNull(tableName);
	}
	
	public abstract String getSql() throws AppExceptionWrongState;
	
}
